package com.example.redstarcommerce.cn.dh.shop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * @ClassName Shop
 * @Author AndyWu
 * @Date 2024-11-01 22:35
 * @Motto 学不死就往死里学
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("shop")
public class Shop {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("uid")
    private String uid;

    @TableField("name")
    private String name;

    @TableField("type")
    private String type;

    @TableField("introduce")
    private String introduce;

    @TableField("price")
    private Float price;

    @TableField("scoer")
    private Double scoer;

    @TableField("scoernumber")
    private Integer scoernumber;
    /**
    应该添加 is_marketable 默认为 0 ; 0表示已下架，1表示已上架
    应该添加 is_delete 默认为 0 ; 0表示为删除，1表示已删除
    应该添加 status 默认为 0 ; 0表示为未审核，1表示已审核，2表示审核不通过
    */

    public Shop(String uid, String name, String type, String introduce, Float price, Double scoer, Integer scoernumber) {
        this.uid = uid;
        this.name = name;
        this.type = type;
        this.introduce = introduce;
        this.price = price;
        this.scoer = scoer;
        this.scoernumber = scoernumber;
    }

    public Shop(String uid, String name, String type, String introduce, Float price) {
        this.uid = uid;
        this.name = name;
        this.type = type;
        this.introduce = introduce;
        this.price = price;
    }
}
